{% extends 'base_registration.html' %}

{% block title %}log in to your account{% endblock title %}

{% block content %}
<form method="post" action="">
{% if form.errors %}
{{ form.non_field_errors }}
{% endif %}
<dl>
<dt>{{ form.username.label_tag }}{% if form.username.errors %} <span class="error">{{ form.username.errors|join:", " }}</span>{% endif %}:</dt>
<dd>{{ form.username }}</dd>
<dt>{{ form.password.label_tag }}{% if form.password.errors %} <span class="error">{{form.password.errors|join:", " }}</span>{% endif %}:</dt>
<dd>{{ form.password }}</dd>
</dl>
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
<p>If you don't already have an account, you can <a href="{% url registration_register %}" title="Register for a new account">register for a new account</a>.</p>
{% endblock %}